package com.macro.mall.tiny.modules.foster.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.macro.mall.tiny.common.api.CommonResult;
import com.macro.mall.tiny.modules.foster.model.Pet;
import com.baomidou.mybatisplus.extension.service.IService;
import com.macro.mall.tiny.modules.foster.model.dto.PetAndTimeDTO;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author zhuyi
 * @since 2024-03-27
 */
public interface PetService extends IService<Pet> {
    CommonResult savePetAndAppointment(PetAndTimeDTO petAndTimeDTO);

    CommonResult getByUserId(Long id);

    CommonResult removeByPetId(Long id);

    Page<Pet> pagePet(Page<Pet> page);

    Pet getByPetId(Long id);
}
